Optimal. Leaf size=149 \[ -\frac {a^2 B \cos (e+f x) \log (1-\sin (e+f x))}{c^2 f \sqrt {a \sin (e+f x)+a} \sqrt {c-c \sin (e+f x)}}+\frac {(A+B) \cos (e+f x) (a \sin (e+f x)+a)^{3/2}}{4 f (c-c \sin (e+f x))^{5/2}}-\frac {a B \cos (e+f x) \sqrt {a \sin (e+f x)+a}}{c f (c-c \sin (e+f x))^{3/2}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.39, antiderivative size = 149, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 5, integrand size = 40, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.125, Rules used = {2972, 2739, 2737, 2667, 31} \[ -\frac {a^2 B \cos (e+f x) \log (1-\sin (e+f x))}{c^2 f \sqrt {a \sin (e+f x)+a} \sqrt {c-c \sin (e+f x)}}+\frac {(A+B) \cos (e+f x) (a \sin (e+f x)+a)^{3/2}}{4 f (c-c \sin (e+f x))^{5/2}}-\frac {a B \cos (e+f x) \sqrt {a \sin (e+f x)+a}}{c f (c-c \sin (e+f x))^{3/2}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 31
Rule 2667
Rule 2737
Rule 2739
Rule 2972
Rubi steps
\begin {align*} \int \frac {(a+a \sin (e+f x))^{3/2} (A+B \sin (e+f x))}{(c-c \sin (e+f x))^{5/2}} \, dx &=\frac {(A+B) \cos (e+f x) (a+a \sin (e+f x))^{3/2}}{4 f (c-c \sin (e+f x))^{5/2}}-\frac {B \int \frac {(a+a \sin (e+f x))^{3/2}}{(c-c \sin (e+f x))^{3/2}} \, dx}{c}\\ &=\frac {(A+B) \cos (e+f x) (a+a \sin (e+f x))^{3/2}}{4 f (c-c \sin (e+f x))^{5/2}}-\frac {a B \cos (e+f x) \sqrt {a+a \sin (e+f x)}}{c f (c-c \sin (e+f x))^{3/2}}+\frac {(a B) \int \frac {\sqrt {a+a \sin (e+f x)}}{\sqrt {c-c \sin (e+f x)}} \, dx}{c^2}\\ &=\frac {(A+B) \cos (e+f x) (a+a \sin (e+f x))^{3/2}}{4 f (c-c \sin (e+f x))^{5/2}}-\frac {a B \cos (e+f x) \sqrt {a+a \sin (e+f x)}}{c f (c-c \sin (e+f x))^{3/2}}+\frac {\left (a^2 B \cos (e+f x)\right ) \int \frac {\cos (e+f x)}{c-c \sin (e+f x)} \, dx}{c \sqrt {a+a \sin (e+f x)} \sqrt {c-c \sin (e+f x)}}\\ &=\frac {(A+B) \cos (e+f x) (a+a \sin (e+f x))^{3/2}}{4 f (c-c \sin (e+f x))^{5/2}}-\frac {a B \cos (e+f x) \sqrt {a+a \sin (e+f x)}}{c f (c-c \sin (e+f x))^{3/2}}-\frac {\left (a^2 B \cos (e+f x)\right ) \operatorname {Subst}\left (\int \frac {1}{c+x} \, dx,x,-c \sin (e+f x)\right )}{c^2 f \sqrt {a+a \sin (e+f x)} \sqrt {c-c \sin (e+f x)}}\\ &=\frac {(A+B) \cos (e+f x) (a+a \sin (e+f x))^{3/2}}{4 f (c-c \sin (e+f x))^{5/2}}-\frac {a B \cos (e+f x) \sqrt {a+a \sin (e+f x)}}{c f (c-c \sin (e+f x))^{3/2}}-\frac {a^2 B \cos (e+f x) \log (1-\sin (e+f x))}{c^2 f \sqrt {a+a \sin (e+f x)} \sqrt {c-c \sin (e+f x)}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.94, size = 198, normalized size = 1.33 \[ \frac {a \sqrt {a (\sin (e+f x)+1)} \left (\cos \left (\frac {1}{2} (e+f x)\right )-\sin \left (\frac {1}{2} (e+f x)\right )\right ) \left (\sin (e+f x) \left (A+4 B \log \left (\cos \left (\frac {1}{2} (e+f x)\right )-\sin \left (\frac {1}{2} (e+f x)\right )\right )+3 B\right )+B \cos (2 (e+f x)) \log \left (\cos \left (\frac {1}{2} (e+f x)\right )-\sin \left (\frac {1}{2} (e+f x)\right )\right )-B \left (3 \log \left (\cos \left (\frac {1}{2} (e+f x)\right )-\sin \left (\frac {1}{2} (e+f x)\right )\right )+2\right )\right )}{c^2 f (\sin (e+f x)-1)^2 \sqrt {c-c \sin (e+f x)} \left (\sin \left (\frac {1}{2} (e+f x)\right )+\cos \left (\frac {1}{2} (e+f x)\right )\right )} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [F] time = 2.95, size = 0, normalized size = 0.00 \[ {\rm integral}\left (\frac {{\left (B a \cos \left (f x + e\right )^{2} - {\left (A + B\right )} a \sin \left (f x + e\right ) - {\left (A + B\right )} a\right )} \sqrt {a \sin \left (f x + e\right ) + a} \sqrt {-c \sin \left (f x + e\right ) + c}}{3 \, c^{3} \cos \left (f x + e\right )^{2} - 4 \, c^{3} - {\left (c^{3} \cos \left (f x + e\right )^{2} - 4 \, c^{3}\right )} \sin \left (f x + e\right )}, x\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [B] time = 0.66, size = 594, normalized size = 3.99 \[ \frac {\left (A \sin \left (f x +e \right )-A \sin \left (f x +e \right ) \cos \left (f x +e \right )+2 B \left (\cos ^{2}\left (f x +e \right )\right ) \sin \left (f x +e \right )-A +3 B +B \sin \left (f x +e \right ) \cos \left (f x +e \right )+8 B \sin \left (f x +e \right ) \ln \left (-\frac {-1+\cos \left (f x +e \right )+\sin \left (f x +e \right )}{\sin \left (f x +e \right )}\right )-4 B \sin \left (f x +e \right ) \ln \left (\frac {2}{\cos \left (f x +e \right )+1}\right )+4 B \cos \left (f x +e \right ) \ln \left (-\frac {-1+\cos \left (f x +e \right )+\sin \left (f x +e \right )}{\sin \left (f x +e \right )}\right )-2 B \cos \left (f x +e \right ) \ln \left (\frac {2}{\cos \left (f x +e \right )+1}\right )-3 B \left (\cos ^{2}\left (f x +e \right )\right )-2 B \ln \left (-\frac {-1+\cos \left (f x +e \right )+\sin \left (f x +e \right )}{\sin \left (f x +e \right )}\right ) \left (\cos ^{2}\left (f x +e \right )\right ) \sin \left (f x +e \right )+B \ln \left (\frac {2}{\cos \left (f x +e \right )+1}\right ) \left (\cos ^{2}\left (f x +e \right )\right ) \sin \left (f x +e \right )+2 B \ln \left (\frac {2}{\cos \left (f x +e \right )+1}\right ) \sin \left (f x +e \right ) \cos \left (f x +e \right )-4 B \ln \left (-\frac {-1+\cos \left (f x +e \right )+\sin \left (f x +e \right )}{\sin \left (f x +e \right )}\right ) \sin \left (f x +e \right ) \cos \left (f x +e \right )+B \ln \left (\frac {2}{\cos \left (f x +e \right )+1}\right ) \left (\cos ^{3}\left (f x +e \right )\right )-2 B \ln \left (-\frac {-1+\cos \left (f x +e \right )+\sin \left (f x +e \right )}{\sin \left (f x +e \right )}\right ) \left (\cos ^{3}\left (f x +e \right )\right )+6 B \left (\cos ^{2}\left (f x +e \right )\right ) \ln \left (-\frac {-1+\cos \left (f x +e \right )+\sin \left (f x +e \right )}{\sin \left (f x +e \right )}\right )-3 B \left (\cos ^{2}\left (f x +e \right )\right ) \ln \left (\frac {2}{\cos \left (f x +e \right )+1}\right )-3 B \sin \left (f x +e \right )-2 B \cos \left (f x +e \right )+2 B \left (\cos ^{3}\left (f x +e \right )\right )-8 B \ln \left (-\frac {-1+\cos \left (f x +e \right )+\sin \left (f x +e \right )}{\sin \left (f x +e \right )}\right )+4 B \ln \left (\frac {2}{\cos \left (f x +e \right )+1}\right )+A \left (\cos ^{2}\left (f x +e \right )\right )\right ) \left (a \left (1+\sin \left (f x +e \right )\right )\right )^{\frac {3}{2}}}{f \left (\cos ^{2}\left (f x +e \right )+\sin \left (f x +e \right ) \cos \left (f x +e \right )+\cos \left (f x +e \right )-2 \sin \left (f x +e \right )-2\right ) \left (-c \left (\sin \left (f x +e \right )-1\right )\right )^{\frac {5}{2}}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {{\left (B \sin \left (f x + e\right ) + A\right )} {\left (a \sin \left (f x + e\right ) + a\right )}^{\frac {3}{2}}}{{\left (-c \sin \left (f x + e\right ) + c\right )}^{\frac {5}{2}}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.01 \[ \int \frac {\left (A+B\,\sin \left (e+f\,x\right )\right )\,{\left (a+a\,\sin \left (e+f\,x\right )\right )}^{3/2}}{{\left (c-c\,\sin \left (e+f\,x\right )\right )}^{5/2}} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________